package org.ch02.test09.demo02;

/**
 * Java 对象 - 注意此 Java 对象并不存在 setter/getter
 *
 * @author ZJL
 * @date 2025-03-24
 */
public class Person extends Object{
    // 1.字段
    private String name;
    private int age;

    public Person() {

    }

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
